<?php
define('IN_ECS', true);
require $_SERVER['DOCUMENT_ROOT'].'/includes/init.php';
include_once dirname(dirname(__FILE__)). "/wxSendLib.php";
$timeStamp = empty ( $_GET ['timestamp'] ) ? '' : trim ( $_GET ['timestamp'] );  
$nonce = empty ( $_GET ['nonce'] ) ? '' : trim ( $_GET ['nonce'] );  
$msg_sign = empty ( $_GET ['msg_signature'] ) ? "" : trim ( $_GET ['msg_signature'] ); 
$encrypt_type = empty ( $_GET ['encrypt_type'] ) ? "" : trim ( $_GET ['encrypt_type'] ); 
$encryptMsg = file_get_contents ( 'php://input' );  

$wxSendLib = new wxSendLib();
$send = $wxSendLib->send_msg($msg_sign, $timeStamp, $nonce, $encryptMsg);
//$wxSendLib->send_msg_test();
echo $send;



?>